package com.fy.module.repo.controller;

import com.fy.module.repo.entity.Repo;
import com.fy.module.repo.service.IRepoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 题库 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2023-03-18
 */
@RestController
@RequestMapping("/repo")
@Api(description = "题库管理")
public class RepoController {

    @Autowired
    private IRepoService repoService;

    @GetMapping("list")
    @ApiOperation("查询所有的题库")
    public List<Repo> findAll(){
        return  repoService.list();
    }


}
